package com.fatkun;

import com.google.appengine.api.datastore.Key;
import javax.jdo.annotations.IdGeneratorStrategy;
import javax.jdo.annotations.PersistenceCapable;
import javax.jdo.annotations.Persistent;
import javax.jdo.annotations.PrimaryKey;

@PersistenceCapable
public class UserData {
    @PrimaryKey
    @Persistent(valueStrategy = IdGeneratorStrategy.IDENTITY)
    private Key key;

    @Persistent
    private String UserEmail;

    @Persistent
    private Double Max;

    @Persistent
    private Double Min;
    
    @Persistent
    private int bTriggered;

    public UserData(String UserEmail, Double Max, Double Min,int bTriggered) {
        this.UserEmail = UserEmail;
        this.Max = Max;
        this.Min = Min;
        this.bTriggered = bTriggered;
    }

    public Key getKey() {
        return key;
    }

    public String getUserEmail() {
        return UserEmail;
    }

    public Double getMax() {
        return Max;
    }

    public Double getMin() {
        return Min;
    }

    public void setUserEmail(String UserEmail) {
        this.UserEmail = UserEmail;
    }

    public void setMax(Double Max) {
        this.Max = Max;
    }

    public void setMin(Double Min) {
        this.Min = Min;
    }
    public void setbTriggered(int  bTriggered) {
        this.bTriggered = bTriggered;
    }

    public int getbTriggered() {
       return this.bTriggered;
    }
}